package com.eascs.spider.ant.worker.controller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import com.eascs.spider.ant.common.proj.Task;
import com.eascs.spider.ant.worker.manager.TaskManager;

@RestController
@RequestMapping(value = "/worker")
public class WorkerController {

	TaskManager manager = TaskManager.getInstance();
	
	@RequestMapping(value = "/recieve" , method = RequestMethod.POST)
	public void recieve(Task task){
		manager.addReceiveQueue(task);
	} 
	
}
